package rbm.modelado.datos.elementos;

import rbm.modelado.datos.elementos.interfaces.Shape3D;

//Elemento no colocado en el tablero

public class Pieza3DImpl implements Shape3D {
	
	private Boolean[][][] block;
	
	public Pieza3DImpl (Boolean[][][] s){
		block = s;
	}
	
	public Pieza3DImpl(int zDim, int yDim, int xDim) {
		block = new Boolean[zDim][yDim][xDim];
	}
	public Boolean[][][] getShape() {
		return block;
	}

	public Integer getXDim() {
		return block.length;
	}

	public Integer getYDim() {
		return block[0].length;
	}

	public Integer getZDim() {
		return block[0][0].length;
	}
	
	public Object getContentXYZ(Integer i,Integer j,Integer k){
		return block[i][j][k];
	}

	public void setContentXYZ(Integer i, Integer j, Integer k, Object b) {
		block[i][j][k] = (Boolean) b;		
	}

}
